import request from "../utils/request"

export default{
    checkPwd(userId,oldPassword){
        return request({
            method:"post",
            url:"/user/pwd",
            data:{
                userId,
                oldPassword,
            }
        });
    },
    updatePwd(userId,newPassword){
        return request({
           method:"put",
           url:"/user/updatepwd",
           data:{
               userId,
               newPassword,
           }
        });
    }
}

